package com.netease.nie.mapper;

import org.apache.ibatis.annotations.Param;

import com.netease.nie.model.Credit;

public interface CreditMapper {
	
	Credit queryUserCreditByUserId(@Param(value = "userId") long userId);

	int deductUserCredit(@Param(value = "credit") Credit credit);
	
	Long insertUserCredit(@Param(value = "credit") Credit credit);
	
	int giftUserCredit(@Param(value = "credit") Credit credit);

	int addUserCredit(@Param(value = "credit") Credit credit);

	int deductAndAddUserCredit(@Param(value = "credit") Credit credit);
	
}
